package pkmn.move.indirectAction;

import pkmn.Pokemon;

public abstract class IndirectAction {

    public abstract void execute(Pokemon pokemon);

    @Override
    public String toString(){
        return this.getClass().getSimpleName();
    }

    public static IndirectAction newByName(String name) throws Exception {
        Class classe = Class.forName("pkmn.move.indirectAction." + name);
        return (IndirectAction) classe.newInstance();
    }
}
